package com.jiantong.work.impl.dao;

import com.jiantong.work.model.RetailImmunizationSubRecord;
import io.terminus.common.mysql.dao.MyBatisDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by mz on 18/9/17.
 *
 */
@Repository
public class RetailImmunizationSubRecordDao extends MyBatisDao<RetailImmunizationSubRecord>{

    /**
     * 根据主表的ID
     * 查询字表数据的list
     * @param criteria 参数
     * @return List<RetailImmunizationSubRecord>
     */
    public List<RetailImmunizationSubRecord> queryList(Map<String , Object> criteria){
        return getSqlSession().selectList(sqlId("list"),criteria);
    }
}
